﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfAGVSystem.DBModel;
using WpfAGVSystem.ViewModels;

namespace WpfAGVSystem
{
    public class DeviceTypeClass: BindableBase
    {

        public static List<DeviceTypeClass> DeviceTypeClasses { get; set; } = new List<DeviceTypeClass>();
        
        public DeviceStation_Entity DeviceStation_EF { get; set; }
        public DeviceViewModel deviceViewModel { get; set; }

        private int deviceid;
        /// <summary>
        /// 占用AGV
        /// </summary>
        public int Deviceid
        {
            get { return deviceid; }
            set
            {
                deviceid = value;
                deviceViewModel.isOccupy = value != 0 ? true : false;
            }
        }
        public DeviceTypeClass()
        {
            DeviceTypeClasses.Add(this);
        }






    }
}
